using CHARACTERS;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Test_InputPanel : MonoBehaviour
{
    public InputPanel inputPanel;
    // Start is called before the first frame update
    void Start()
    {
        StartCoroutine(Running());
    }

    IEnumerator Running()
    {
        Character Raelin = CharacterManager.instance.CreateCharacter("Raelin", revealAfterCreation: true);
        yield return Raelin.Say("Hi ! what's your name");
        inputPanel.Show("what is your name?");
        while (inputPanel.isWaitingOnUserInput)
            yield return null;
        string playerName = inputPanel.lastInput;
        yield return Raelin.Say($"It's nice to meet you,{playerName}");
    }


}
